package com.hzncc.flowable_diboot.project_contracts.mapper;

import com.diboot.core.mapper.BaseCrudMapper;
import com.hzncc.flowable_diboot.project_contracts.entity.ProjectContractAudit;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
* 项目类合同评审 相关Mapper层接口定义
* @author MyName
* @version 1.0
* @date 2024-09-24
* Copyright © MyCorp
*/
@Mapper
public interface ProjectContractAuditMapper extends BaseCrudMapper<ProjectContractAudit> {

    @Select("select * from mdl_project_contract_audit m left join mdl_project_contract_audit_iam_user u on m.id = u.project_contract_audit where m.is_deleted = 0 and u.is_deleted = 0 and u.user = ${currentUserId}")
    List<String> getStarContractIds(String currentUserId);
}